﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;

namespace MathParserDemo
{
    namespace TokenizerExceptions
    {
        /// <summary>
        /// Thrown when a pattern in the code is incomplete.
        /// </summary>
        [Serializable]
        public class IncompletePattern : Exception
        {
            public IncompletePattern() { }
            public IncompletePattern(string Message) : base(Message) { }
            public IncompletePattern(string Message, Exception InnerException)
                : base(Message, InnerException)
            {
            }
            protected IncompletePattern(SerializationInfo Info, StreamingContext Context)
                : base(Info, Context)
            {
            }
        }
        [Serializable]
        public class SyntaxError : Exception
        {
            public SyntaxError() { }
            public SyntaxError(string Message) : base(Message) { }
            public SyntaxError(string Message, Exception InnerException)
                : base(Message, InnerException)
            {
            }
            protected SyntaxError(SerializationInfo Info, StreamingContext Context)
                : base(Info, Context)
            {
            }
        }
    }
}